<?php
require('common_view_functions.php');

function without_time($dt_str) {
	$r = explode(' ', $dt_str);
	return $r[0];
}
?><table id="tblEntryList" cellspacing="0">
	<caption><?php echo($entry_list_month_title); ?></caption>
	<tr>
		<th>&nbsp;</th>
		<th>网志标题</th>
		<th>日期</th>
		<th>状态</th>
		<th>操作</th>
	</tr>
	<?php foreach($month_entry_list as $mel) { ?>
	<tr id="entryRow<?php echo($mel->id); ?>">
		<td class="chk"><input type="checkbox" name="chkEntryId" value="<?php echo($mel->id); ?>" /></td>
		<td>
			<h4 class="expr_<?php echo($mel->expression); ?>"><a target="_blank" href="<?php echo('/' . $blogger_uri . '/entry/' . $mel->id); ?>"><?php echo(htmlspec($mel->title)); ?></a></h4>
			<div class="cate"><?php echo(htmlspec($mel->category_title)); ?></div>
			<div class="tags"><?php echo(htmlspec($mel->tags)); ?></div>
		</td>
		<td class="date"><?php echo(without_time($this->common->NicerTime($mel->post_time))); ?></td>
		<td class="state">
			<?php if($mel->state == 3) { ?>
			<img alt="Internal" src="/img/group.png" title="社区内部" />
			<?php } elseif($mel->state == 0) { ?>
			<img alt="Secret" src="/img/lock.png" title="保密" />
			<?php } elseif($mel->state == 99) { ?>
			<img alt="Draft" src="/img/page_white_go.png" title="草稿" />
			<?php } else { ?>
			&nbsp;
			<?php } ?>
		</td>
		<td class="oper">
			<a title="编辑" rel="e_<?php echo($mel->id); ?>" href="<?php echo('/' . $blogger_uri . '/mgmt/edit_entry/' . $mel->id); ?>"><img alt="" src="/img/page_white_edit.png" border="0" /></a>
			<a title="删除" rel="d_<?php echo($mel->id); ?>" href="javascript:;"><img alt="" src="/img/delete.png" border="0" /></a>
		</td>
	</tr>
	<?php } ?>
</table>
